/**
 * <p>Title: ServiceZMCMG0.java</p>
 * <p>Description: </p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author 张坤
 * @version 1.0
 * <pre>History:
 *          2011-06-21 上午09:38:09  张坤  Create
 *</pre>
 */
package com.baosight.sczx.zm.cm.service;

import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.ep.ServiceEPBase;
import com.baosight.sczx.zm.cm.domain.ZMCMDepot;


/**隶属于二级库存：二级库房信息
 * <p>Title: ServiceZMCMG0.java</p>
 * <p>Description: </p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author 张坤
 * @version 1.0
 * <pre>History:
 *          2011-06-30 上午09:38:09  张坤  Create
 *</pre>
 */
public class ServiceZMCMG0 extends ServiceEPBase {
	
	/**
	 * 初始化列表数据方法
	 * <p>Function: initLoad</p>
	 * <p>Description: </p>
	 * <p>return value: ServiceZMCMG0</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2011-06-21下午08:44:45 张坤
	 * </p>
	 *
	 */
	public EiInfo initLoad(EiInfo inInfo) 
	{
		inInfo.addBlock(EiConstant.resultBlock).set("showCount", "true");//如果不加这个，翻页的统计和显示是错误的
		EiInfo outInfo = this.query(inInfo);
		return outInfo;
	}
	
	/**
	 * 主表数据查询方法
	 * <p>Function: query</p>
	 * <p>Description: </p>
	 * <p>return value: ServiceZMCMG0</p>
	 * <p>throws Exception:</p>
	 * <p>History:
	 *    2011-06-21 上午09:38:09  张坤  Create
	 * </p>
	 *
	 */
	@Override
	public EiInfo query(EiInfo inInfo) 
	{
		EiInfo outInfo = super.query(inInfo, "ZMCMDepot.query1", new ZMCMDepot());
		return outInfo;
	}
}
